import Vue from 'vue';
import VueRouter from 'vue-router';
import HomeView from '../views/Home.vue';

Vue.use(VueRouter);

const routes = [

  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/login',
    name: 'login',
    component: () => import("../views/Login.vue")
  },
  {
    path: '/regist',
    name: 'regist',
    component: () => import("../views/Regist.vue")
  },
  {
    path: '/destination',
    name: 'destination',
    component: () => import("../views/Destination.vue")
  },
  {
    path: '/desDetail',
    name: 'desDetail',
    component: () => import("../views/DesDetail.vue")
  },
];

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
});

export default router;
